<!DOCTYPE html>
<html lang="zh-cn">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title></title>
		<style>
			
		</style>
		<script>
			let o = [1,2,3,4];
			localStorage.setItem('key',JSON.stringify(o))
			localStorage.setItem('key2',JSON.stringify({a:1,b:2}))
			let obj = localStorage.getItem('key2');
			console.log(JSON.parse(obj));
		</script>
	</head>

	<body>
		
	</body>
</html>